package gov.dhs.cis.soa.data;

import gov.dhs.cis.soa.Constants;
import gov.dhs.cis.soa.Utils;
import gov.dhs.cis.soa.Constants.EntityType;

import java.sql.Timestamp;


public class InfrastructureLSInst extends AbstractSOAData {
	public static final String STEREO_TYPE = "Logical Server Instance";
	public int id;
	public String name;
	public String stereoType;
	public String psServer;
	public String lsImage;
	public String CPU;
	public String RAM;

	public transient Timestamp createdDt = new Timestamp(System.currentTimeMillis());

	@Override
	public String toString() {
		String ret = "InfrastructureLSInst [id=" + id + ", name=" + name + "] ";
		return ret;
	}
	/*
	public void createDescription() {
		StringBuffer txt = new StringBuffer();
		if(Utils.isEmpty(descText))
			descText = "";
		txt.append(Constants.NL+"Description = " + descText);
		if(Utils.isEmpty(designAspects))
			designAspects = "";
		txt.append(Constants.NL+"Design Aspects = " + designAspects);
		
		desc = Utils.prepareDescObj(txt.toString(), EntityType.INFLS);
	}
	*/
	
	@Override
	public long getId() {
		return id;
	}
	@Override
	public String getHashableId() {
		return name;
	}

	@Override
	public EntityType getUMLType() {
		return EntityType.LSINST;
	}
}

